/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package util;

import dialogs.RegistroLista;
import java.awt.Component;
import javax.swing.JList;
import javax.swing.ListCellRenderer;

/**
 *
 * @author victorino
 */
public class ListaRegistroCellRenderer implements ListCellRenderer {

    public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {

        RegistroLista reg = (RegistroLista)value;
        if(isSelected){
            reg.setSelected(true);
        }else
            reg.setSelected(false);
        return reg;
    }


    

}
